Skip to content

Comments

feat(#400): Grafana 추가#401

Merged
Yoonchulchung merged 2 commits intodevfrom
feat/400-grafana
Feb 19, 2026
Merged

feat(#400): Grafana 추가#401
Yoonchulchung merged 2 commits intodevfrom
feat/400-grafana

Conversation

@Yoonchulchung
Copy link
Member

Summary

Grafana를 통해 서버 모니터링을 위해 build.gradle과 application.yml에 설정을 추가

Changes

  • build.gradle
  • src/main/application-dev.yml
  • src/main/application-prod.yml

Type of Change

  • Bug fix (기존 기능에 영향을 주지 않는 버그 수정)
  • New feature (기존 기능에 영향을 주지 않는 새로운 기능 추가)
  • Breaking change (기존 기능에 영향을 주는 수정)
  • Refactoring (기능 변경 없는 코드 개선)
  • Documentation (문서 수정)
  • Chore (빌드, 설정 등 기타 변경)
  • Release (develop → main 배포)

Related Issues

#400

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Yoonchulchung, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 Grafana를 통한 서버 모니터링을 가능하게 하기 위해 필요한 설정을 추가합니다. 애플리케이션의 build.gradle에 Prometheus 메트릭 수집을 위한 의존성을 포함하고, 개발 및 운영 환경의 application.yml 파일에 Prometheus 엔드포인트를 노출하여 메트릭 데이터를 외부에서 접근할 수 있도록 구성합니다.

Highlights

  • Prometheus 의존성 추가: 애플리케이션이 메트릭을 수집할 수 있도록 build.gradle 파일에 Prometheus 레지스트리 의존성이 추가되었습니다.
  • 개발 환경 Prometheus 엔드포인트 노출: application-dev.yml 파일에서 Spring Boot Actuator의 관리 엔드포인트에 prometheus가 포함되어 개발 환경에서 Prometheus 메트릭을 노출하도록 설정되었습니다.
  • 운영 환경 Prometheus 엔드포인트 노출: application-prod.yml 파일에서 Spring Boot Actuator의 관리 엔드포인트에 prometheus가 포함되어 운영 환경에서 Prometheus 메트릭을 노출하도록 설정되었습니다.
Changelog
  • build.gradle
    • Prometheus 메트릭 레지스트리 의존성 io.micrometer:micrometer-registry-prometheus를 추가했습니다.
  • src/main/resources/application-dev.yml
    • 관리 엔드포인트 노출 설정(management.endpoints.web.exposure.include)에 prometheus를 추가했습니다.
  • src/main/resources/application-prod.yml
    • 관리 엔드포인트 노출 설정(management.endpoints.web.exposure.include)에 prometheus를 추가했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

Grafana와 Prometheus를 이용한 모니터링 환경 구축을 위한 설정을 잘 추가해 주셨습니다. micrometer-registry-prometheus 의존성 추가와 Actuator 엔드포인트 노출은 적절한 조치입니다. 다만, 현재 SecurityConfig 설정에서 /actuator/prometheus 경로에 대한 접근 허용이 누락되어 있어 실제 메트릭 수집이 불가능한 상태입니다. 또한 운영 환경에서는 불필요한 엔드포인트 노출을 최소화하는 것이 보안상 권장됩니다.

web:
exposure:
include: health,info,metrics,env,beans
include: health,info,metrics,env,beans,prometheus
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

prometheus 엔드포인트를 활성화했지만, SecurityConfig.javaPERMIT_ALL_URL_ARRAY/actuator/prometheus 경로가 추가되지 않았습니다. 이로 인해 보안 필터에 의해 접근이 차단되어 Prometheus 서버가 메트릭을 수집할 수 없게 됩니다. 개발 환경에서도 정상적인 테스트를 위해 보안 설정 업데이트가 필요합니다.

web:
exposure:
include: health,info,metrics
include: health,info,metrics,prometheus
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Actuator에서 prometheus 엔드포인트를 노출하도록 설정하셨으나, SecurityConfig.java에서 해당 경로에 대한 접근 권한을 허용하지 않아 실제 운영 환경에서 메트릭 수집이 되지 않을 것으로 보입니다. PERMIT_ALL_URL_ARRAY/actuator/prometheus를 추가해 주시기 바랍니다. 또한, Prometheus를 통한 모니터링을 수행한다면 기존의 JSON 기반 metrics 엔드포인트는 보안 및 리소스 관리 측면에서 제외하는 것을 권장합니다.

        include: health,info,prometheus

@Yoonchulchung Yoonchulchung merged commit 2024e12 into dev Feb 19, 2026
1 check passed
@Yoonchulchung Yoonchulchung deleted the feat/400-grafana branch February 19, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant